export const LASTPATH = "LASTPATH";

export default {
    state: {
        lastPath: uni.getStorage({
        	key:'lastPath'
        }) || "../tabbar/index"
    },
    mutations: {
        [LASTPATH](state,url) {
            state.lastPath = url;
			uni.setStorage({
				key:'lastPath',
				data:state.lastPath
			})
        }
    },
    actions: {}
}